﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DDD.Domain.Model
{
    public class Student
    {
        [Key]
        [Required]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public long ID { get; set; }

        [MaxLength(20)]
        [Required]
        public string Name { get; set; }

        [EmailAddress]
        [Required]
        public string EmailAddress { get; set; }
    }
}
